﻿<div class="page-heading">
		<h1>Quản lý bài giới thiệu</h1>
</div>
<div class="page-content">
    <div class="msg-box hidden" id="msg-newsdelete">
        <span class="msg">Xóa tin tức thành công.</span>
    </div>
    <div class="error-box hidden" id="err-newsdelete">
        Có lỗi xảy ra. Không thể xóa được tin tức.
    </div>
    <div class="top-row _right">
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" class="list-table">

        <thead>
            <tr>
                <th class="table-header-check">ID</th>
                <th class="table-header-repeat line-left minwidth-1"><span class="th">Title</span></th>
                <th class="table-header-repeat line-left minwidth-2"><span class="th">Tiêu đề</span></th>
                <th class="table-header-repeat line-left minwidth-2"><span class="th">Danh mục cha</span></th>
                <th class="table-header-repeat line-left minwidth-2"><span class="th">Ngày</span></th>
                <th class="table-header-repeat line-left"><span class="th">Quản lý</span></th>
            </tr>
        </thead>
        <tbody>    
            <fly:list data="viewnews">
                <tr>
                    <td align="center">{viewnews.id}</td>
                    <td>{viewnews.title}</td>
                    <td>{viewnews.viTitle}</td>
                    <td>{viewnews.parentTitle}</td>
                    <td>{viewnews.since}</td>
                    <td class="options-width">
					    <a href="{BaseUrl}/admin/editprofiles/{viewnews.id}" title="Sửa" class="icon-1 info-tooltip"></a>
			        </td>
                </tr>
            </fly:list>
        </tbody>
    </table>
   <!--  start paging..................................................... -->
            <div class="paging-outer hidden" id="profiles-paging">
	            <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
	                <tr>
	                    <td>
		                    <a href="{BaseUrl}/admin/profiles/{CatId}/0" class="page-far-left"></a>
		                    <a href="{BaseUrl}/admin/profiles/{CatId}/{preindex}" class="page-left"></a>
		                    <div id="page-info">Trang <strong>{pageindexview}</strong> / {countpage}</div>
		                    <a href="{BaseUrl}/admin/profiles/{CatId}/{nextindex}" class="page-right"></a>
		                    <a href="{BaseUrl}/admin/profiles/{CatId}/{lastindex}" class="page-far-right"></a>
	                    </td>
	                </tr>
	            </table>
            </div>
	<!--  end paging................ -->
</div>

<script type="text/javascript">
    $('#cat_select').val({CatId});
    $('#cat_select').change(function () {
        location = '{BaseUrl}/admin/newslist/' + $('#cat_select').val();
    });
</script>